![]() | PlaceholdersKeePass supports various placeholders. |
In many places in KeePass (auto-type, URL field, triggers, ...), placeholders can be used.
Field | Placeholder |
---|---|
Title | {TITLE} |
User Name | {USERNAME} |
URL | {URL} |
Password | {PASSWORD} |
Notes | {NOTES} |
{S:Name}
.
For example, if you have a custom string named "eMail",
you can use the placeholder {S:eMail}
.
Placeholder | Is Replaced By |
---|---|
{URL:RMVSCM} | Entry URL without scheme specifier. |
Fields of other entries can be inserted using Field References.
Placeholder | Is Replaced By |
---|---|
{INTERNETEXPLORER} | Path of Internet Explorer, if installed. |
{FIREFOX} | Path of Mozilla Firefox, if installed. |
{OPERA} | Path of Opera, if installed. |
{GOOGLECHROME} | Path of Google Chrome, if installed. |
Placeholder | Is Replaced By |
---|---|
{APPDIR} | KeePass application directory path. |
Placeholder | Is Replaced By |
---|---|
{GROUP} | Name of the entry's parent group. |
{GROUPPATH} | Full group path of the entry. |
{DB_PATH} | Full path of the current database. |
{DB_DIR} | Directory of the current database. |
{DB_NAME} | File name (including extension) of the current database. |
{DB_BASENAME} | File name (excluding extension) of the current database. |
{DB_EXT} | File name extension of the current database. |
{ENV_DIRSEP} | Directory separator ('\' on Windows, '/' on Unix). |
{DT_SIMPLE} | Current local date/time as a simple, sortable string. |
{DT_YEAR} | Year component of the current local date/time. |
{DT_MONTH} | Month component of the current local date/time. |
{DT_DAY} | Day component of the current local date/time. |
{DT_HOUR} | Hour component of the current local date/time. |
{DT_MINUTE} | Minute component of the current local date/time. |
{DT_SECOND} | Seconds component of the current local date/time. |
{DT_UTC_SIMPLE} | Current UTC date/time as a simple, sortable string. |
{DT_UTC_YEAR} | Year component of the current UTC date/time. |
{DT_UTC_MONTH} | Month component of the current UTC date/time. |
{DT_UTC_DAY} | Day component of the current UTC date/time. |
{DT_UTC_HOUR} | Hour component of the current UTC date/time. |
{DT_UTC_MINUTE} | Minute component of the current UTC date/time. |
{DT_UTC_SECOND} | Seconds component of the current UTC date/time. |
System environment variables are supported.
The name of the variable must be enclosed in '%
' characters.
For example %TEMP%
is replaced by the user's temporary path.
Placeholder | Action |
---|---|
{PICKCHARS} {PICKCHARS:Fld:Opt} | Shows a dialog to pick certain characters from an entry string. See below. |
{NEWPASSWORD} | Generates a new password. See below. |
{PASSWORD_ENC} | Password in encrypted form. See below. |
{HMACOTP} | Generates a one-time password. See below. |
{PICKCHARS}
– Picking Characters:{PICKCHARS}
placeholder shows a dialog, in which you can
pick characters of an entry string (like the password) at certain positions.{PICKCHARS}
without any parameters lets you pick an arbitrary
amount of characters from the password of the entry.
A different entry string can be specified by appending a ':
'
and the name of the field; e.g. {PICKCHARS:UserName}
.
The names of the standard fields are Title, UserName (without a space),
Password, URL and Notes. A custom entry string can
be referenced by its name (without an S:
prefix).:
'. If you want to specify
multiple options, separate them by a comma ',
'. Options are
key-value pairs, separated by a '=
'. The following options
are supported:
Conv=D, Conv-Offset=1
, '2', 'c' and 'C'
are converted to 3 down arrow keypresses.Conv=D, Conv-Fmt=0A
.
Similarly, if it contains values A-Z0-9, specify Conv=D, Conv-Fmt=A0
.
If digits start with 1 instead of 0 (i.e. the 0 appears after the 9), use
1A
and A1
instead of 0A
and A0
.{USERNAME}{TAB}{PICKCHARS:Password:C=5}{ENTER}
{S:Memorable}{TAB}{PICKCHARS:Password:ID=1, C=1, Conv=D,
Conv-Offset=1}{TAB}{PICKCHARS:Password:ID=2, C=1, Conv=D,
Conv-Offset=1}{TAB}{PICKCHARS:Password:ID=3, C=1, Conv=D,
Conv-Offset=1}{ENTER}
{S:Memorable}{TAB}{PICKCHARS:Password:C=3, Conv=D, Conv-Offset=1}
,
all the down arrow keypresses are sent to the same, currently active control.{DELAY 250}
after each {TAB}
,
or slowing down the whole sequence, e.g. by prepending {DELAY=150}
.
{NEWPASSWORD}
– Generating new passwords:{NEWPASSWORD}
placeholder
generates a new password for the current entry, based on the "Automatically
generated passwords for new entries" generator profile.{PASSWORD}{TAB}{NEWPASSWORD}{TAB}{NEWPASSWORD}{ENTER}
as auto-type sequence.
{PASSWORD_ENC}
– Encrypting passwords:{PASSWORD_ENC}
placeholder is replaced by the password
of the current entry in encrypted form. The password is encrypted using
credentials of the current Windows user. The encrypted password should
not be stored and only works for the current user.-pw-enc
command line parameter
(see the URL Field Capabilities page for
an example how to define an URL to open an additional KeePass database).
The placeholder cannot be used to transfer passwords to other applications
(except KeePass), because the target applications don't know how to decrypt
encrypted passwords generated by {PASSWORD_ENC}
.
{HMACOTP}
– Generating one-time passwords:{HMACOTP}
placeholder
generates a HMAC-based one-time password as specified in RFC 4226.
The shared secret is the UTF-8 representation of the value of the
'HmacOtp-Secret
' custom entry string field
(case-sensitive), and
the counter is stored in decimal form in the 'HmacOtp-Counter
' field.